home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / snip0493.zip / EXT_KEYS.H < prev    next >
Text File  |  1993-04-05  |  3KB  |  99 lines

  1. /*
  2. **  ext_getch() header file.
  3. **
  4. **  ext_getch() returns:
  5. **
  6. **           0->255     Normal key
  7. **           256->511   Numeric pad key or Function key
  8. **           512->767   Cursor pad key or Numeric pad
  9. **                      "duplicate" key (Enter, /, *, -, +)
  10. */
  11.  
  12. int ext_getch(void);
  13.  
  14. #define Key_F1          0x13b       /* Function keys              */
  15. #define Key_F2          0x13c
  16. #define Key_F3          0x13d
  17. #define Key_F4          0x13e
  18. #define Key_F5          0x13f
  19. #define Key_F6          0x140
  20. #define Key_F7          0x141
  21. #define Key_F8          0x142
  22. #define Key_F9          0x143
  23. #define Key_F10         0x144
  24. #define Key_F11         0x185
  25. #define Key_F12         0x186
  26. #define Key_CF1         0x15e       /* Ctrl-Function keys         */
  27. #define Key_CF2         0x15f
  28. #define Key_CF3         0x160
  29. #define Key_CF4         0x161
  30. #define Key_CF5         0x162
  31. #define Key_CF6         0x163
  32. #define Key_CF7         0x164
  33. #define Key_CF8         0x165
  34. #define Key_CF9         0x166
  35. #define Key_CF10        0x167
  36. #define Key_CF11        0x189
  37. #define Key_CF12        0x18a
  38. #define Key_SF1         0x154       /* Shift-Function keys        */
  39. #define Key_SF2         0x155
  40. #define Key_SF3         0x156
  41. #define Key_SF4         0x157
  42. #define Key_SF5         0x158
  43. #define Key_SF6         0x159
  44. #define Key_SF7         0x15a
  45. #define Key_SF8         0x15b
  46. #define Key_SF9         0x15c
  47. #define Key_SF10        0x15d
  48. #define Key_SF11        0x187
  49. #define Key_SF12        0x188
  50. #define Key_AF1         0x168       /* Alt-Function keys          */
  51. #define Key_AF2         0x169
  52. #define Key_AF3         0x16a
  53. #define Key_AF4         0x16b
  54. #define Key_AF5         0x16c
  55. #define Key_AF6         0x16d
  56. #define Key_AF7         0x16e
  57. #define Key_AF8         0x16f
  58. #define Key_AF9         0x170
  59. #define Key_AF10        0x171
  60. #define Key_AF11        0x18b
  61. #define Key_AF12        0x18c
  62. #define Key_INS         0x152       /* Numeric pad keys           */
  63. #define Key_DEL         0x153
  64. #define Key_HOME        0x147
  65. #define Key_END         0x14f
  66. #define Key_PGUP        0x149
  67. #define Key_PGDN        0x151
  68. #define Key_UPARROW     0x148
  69. #define Key_DNARROW     0x150
  70. #define Key_LTARROW     0x14b
  71. #define Key_RARROW      0x14d
  72. #define Key_PADMIDDLE   0x14c
  73. #define Key_PADEQ       0x3d
  74. #define Key_PADPLUS     0x22b
  75. #define Key_PADMINUS    0x22d
  76. #define Key_PADASTERISK 0x22a
  77. #define Key_PADSLASH    0x22f
  78. #define Key_C1          0x175       /* Ctrl-Numeric pad keys      */
  79. #define Key_C2          0x191
  80. #define Key_C3          0x176
  81. #define Key_C4          0x173
  82. #define Key_C5          0x18f
  83. #define Key_C6          0x174
  84. #define Key_C7          0x177
  85. #define Key_C8          0x18d
  86. #define Key_C9          0x184
  87. #define Key_PINS        0x252       /* Cursor pad keys            */
  88. #define Key_PDEL        0x253
  89. #define Key_PHOME       0x247
  90. #define Key_PEND        0x24f
  91. #define Key_PPGUP       0x249
  92. #define Key_PPGDN       0x251
  93. #define Key_PUPARROW    0x248
  94. #define Key_PDNARROW    0x250
  95. #define Key_PLTARROW    0x24b
  96. #define Key_PRTARROW    0x24d
  97.  
  98. #define Key_ESC         0x1b
  99.